/*
 *  Copyright 2023 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

@import (reference) '../../../styles/variables.less';

.entity-right-panel-vertical-nav {
  &.drawer-entity-right-panel-vertical-nav {
    max-height: calc(100vh - 70px);
    margin-right: 8px;
  }
  width: 62px;
  right: 0px;
  position: relative;
  height: 100vh;
  background: @white;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid @grey-15;
  border-radius: 8px;
  padding-top: -12px;
  .ant-menu-vertical .ant-menu-item:not(:last-child) {
    margin-bottom: 0px;
  }
  .vertical-nav-menu {
    background: transparent;
    border: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    .ant-menu-item {
      display: flex;
      gap: 6px;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      border: none;
      padding: 0;
      margin-top: 0px;
      background: transparent;
      .ant-menu-item-icon {
        height: 16px;
      }

      &.ant-menu-item-active:not(.ant-menu-item-selected),
      &:hover:not(.ant-menu-item-selected) {
        background: transparent;
        color: @primary-7;

        .ant-menu-item-icon {
          //   background: @primary-1;
          color: @primary-7;
        }
        .ant-menu-title-content {
          color: @primary-7;
        }
      }

      &.ant-menu-item-selected {
        background: transparent;
        color: @primary-7;
        border-left: 3px solid @primary-7;
        border-radius: 2px;
        &::after {
          display: none;
        }

        .ant-menu-item-icon {
          color: @primary-6;
        }

        .ant-menu-title-content {
          color: @primary-6;
          font-weight: 600;
        }
      }
      .ant-menu-item-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 16px;
        transition: all 0.2s ease;
        background: transparent;
        color: @grey-700;
      }

      svg {
        font-size: 16px;
      }

      svg {
        fill: transparent !important;
      }

      svg * {
        stroke: currentColor !important;
        fill: transparent !important;
      }

      .ant-menu-title-content {
        display: block;
        font-size: 10px;
        font-weight: 400;
        text-align: center;
        line-height: 100%;
        width: 54px;
        word-break: break-word;
        white-space: normal;
        margin: 0 auto;
        color: @grey-600;
      }
    }
  }
}
